function fadeOut(selector, css) {
	$(selector).stop();
	$(selector).delay(500, selector+'fadeOut').queue(selector+'fadeOut', function(next) {
		$(this).animate({opacity: 0},{duration: 500, queue: false});
		next();
	}).dequeue(selector+'fadeOut').animate(css, 1000);
	setTimeout(function(){$(selector).hide()}, 1000);
}
function fadeIn(selector, css) {
	$(selector).stop();
	$(selector).show();
	css.opacity = 1;
	$(selector).animate(css, 1000);
}
function cleanBalls() {
		fadeOut('.zz-nav-ball.left', {left: '5%'})
		fadeOut('.zz-nav-ball.center', {top: -150});
		fadeOut('.zz-nav-ball.right', {left: '90%'});
}
function showSideBalls() {
		fadeIn('.zz-nav-ball.left', {left: '20%'});
		fadeIn('.zz-nav-ball.right', {left: '80%'});
}
function showCenterBall() {
		cleanBalls();
		setTimeout(function(){$('.zz-nav-ball.center').css({top: 0});fadeIn('.zz-nav-ball.center', {top: -38});}, 1000);
}